package com.demo;

public class StringDemo12 {
    public static void main(String[] args) {
        //1.获取发言
        String talk="你玩的真好，以后不要再玩了，TMD。";
        //2.替换敏感词
        String result=talk.replace("TMD","***");
        //3.打印结果
        System.out.println(result);
    }
}
